package com.tongcao.cn.domain.dataobject;

import lombok.Data;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.io.Serializable;

/**
 * @author:tongcao
 * @since:2019/8/8 14:52
 * Description:
 */
@Data
public class BaseDO implements Serializable {

    /**
     * 主键
     */
    private Long id;

    /**
     * 创建时间
     */
    private Long createTime;

    /**
     * 操作时间
     */
    private Long opTime;

    /**
     * 是否可用,0不是,1是
     */
    private Integer valid;


    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }
}